package com.example.demo.service;

import com.example.demo.pojo.User;

public interface IUserService {
    //根据用户名查询用户
    User findByUserName(String username);
    //根据用户名查询用户
    User findByEmail(String email);

    //注册
    void register(String username,String password,String email);

    //更新
    void update(User user);

    //更新头像
    void updateAvatar(String avatarUrl);

    //更新密码
    void updatePwd(String newPwd);
}
